$OpenBSD: patch-src_boards_rt-01_cpp,v 1.1 2017/04/18 22:00:34 espie Exp $
--- src/boards/rt-01.cpp.orig	Tue Apr 18 23:51:15 2017
+++ src/boards/rt-01.cpp	Tue Apr 18 23:52:16 2017
@@ -25,6 +25,7 @@
  */
 
 #include "mapinc.h"
+#include <cstdlib>
 
 static DECLFR(UNLRT01Read) {
 //	u16 i, prot_areas[2][2] = {
@@ -33,7 +34,7 @@ static DECLFR(UNLRT01Read) {
 //	};
 	if(((A >= 0xCE80) && (A < 0xCF00)) ||
 	   ((A >= 0xFE80) && (A < 0xFF00))) {
-		return 0xF2 | (rand() & 0x0D);
+		return 0xF2 | (std::rand() & 0x0D);
 	} else
 		return CartBR(A);
 }
